import {lazy} from "react";
import {Navigate} from "react-router-dom";


const InterviewList = lazy(() => import("./InterviewList"))
const AddInterview = lazy(() => import("./AddInterview"))
const MyInterview = lazy(() => import("./MyInterview"))
const InterviewDetails = lazy(() => import("./InterviewDetails"))

export default [
  // 主页面路由
  {
    path: "/main/interview", children: [
      {path: "/main/interview", element: <Navigate replace to="/main/interview/interviewList"/>},
      {path: "/main/interview/interviewList", element: <InterviewList/>},
      {path: "/main/interview/addInterview", element: <AddInterview/>},
      {path: "/main/interview/myInterview", element: <MyInterview/>},
      {path: "/main/interview/interviewDetails", element: <InterviewDetails/>},
    ]
  },
]